package main

import (
	"gorm.io/gorm"
	"log"
	"server/acgnovel-go/src/boot"
	"server/acgnovel-go/src/config"
)

type Product struct {
	gorm.Model
	Code  string
	Price uint
}

func main() {
	inits()
}

func inits() {
	//init gin
	boot.GinBoot()
	//init db
	boot.DbBoot()
	//init redis
	boot.RedisBoot()


	err := <-config.ErrorConfig
	if err != nil {
		log.Println(err)
	}

}
